﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LIMS.Model
{
    /// <summary>
    /// OrderLab(实验室预约)实体类
    /// By:田玉粮
    /// 2013.3.17
    /// </summary>
    public class OrderLabs
    {
        /// <summary>
        /// 预约ID[自增种子]
        /// </summary>
        public Int32 ID { get; set; }

        /// <summary>
        /// 当前预约操作时间
        /// </summary>
        public DateTime orderOperationTime { get; set; }

        /// <summary>
        /// 预约实验室的教师ID
        /// </summary>
        public string teacherID { get; set; }

        /// <summary>
        /// 被预约实验室的ID
        /// </summary>
        public string labID { get; set; }

        /// <summary>
        /// 预约实验室的说明
        /// </summary>
        public string testDetail { get; set; }

        /// <summary>
        /// 预约实验日期
        /// </summary>
        public DateTime orderTestDate { get; set; }

        /// <summary>
        /// 枚举值--预约上课时间段
        /// </summary>
        public OrderClassTimeSpan orderClassTimeSpan { get; set; }

        /// <summary>
        /// 无参构造方法
        /// </summary>
        public OrderLabs()
        {
            this.orderTestDate = DateTime.Today.Date;
            this.orderClassTimeSpan = OrderClassTimeSpan.None;
        }

    }

    /// <summary>
    /// 枚举-实验上课时间段
    /// </summary>
    public enum OrderClassTimeSpan
    {
        /// <summary>
        /// 默认标记，不需要使用
        /// </summary>
        None = 0,
        /// <summary>
        /// 上午一二节
        /// </summary>
        labStatus12,
        /// <summary>
        /// 上午三四节
        /// </summary>
        labStatus34,
        /// <summary>
        /// 下午一二节
        /// </summary>
        labStatus56,
        /// <summary>
        /// 下午三四节
        /// </summary>
        labStatus78,
        /// <summary>
        /// 晚上一二节
        /// </summary>
        labStatus910
    }

}
